﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace HexunMicrobloggingClientUI
{
    public enum EnumTextType
    {
        DerectText,
        RSSUri,
    }

    public class TextSource
    {
        public TextSource(string text, EnumTextType textType)
        {
            this.text = text;
            this.enumTextType = textType;
            //Utility.Rss.Feed s;
        }

        private string text = string.Empty;
        public string Text
        {
            get { return text; }
            set { text = value; }
        }

        private EnumTextType enumTextType;
        public EnumTextType EnumTextType
        {
            get { return enumTextType; }
            set { enumTextType = value; }
        }

        public string GetTextFromRSS()
        {
            if (enumTextType == EnumTextType.DerectText)
            {
                return "";
            }

            return GetTextFromRSS();
        }
    }
}
